import request from '@/utils/request'

// 查询公众号图片列表
export function listPubacc (query) {
  return request({
    url: '/manager/pubacc/list',
    method: 'get',
    params: query
  })
}

// 查询公众号图片详细
export function getPubacc (id) {
  return request({
    url: '/manager/pubacc/' + id,
    method: 'get'
  })
}

// 新增公众号图片
export function addPubacc (data) {
  return request({
    url: '/manager/pubacc',
    method: 'post',
    data: data
  })
}

// 修改公众号图片
export function updatePubacc (data) {
  return request({
    url: '/manager/pubacc',
    method: 'put',
    data: data
  })
}

// 删除公众号图片
export function delPubacc (id) {
  return request({
    url: '/manager/pubacc/' + id,
    method: 'delete'
  })
}
